package com.dingding.manager.common.exception.enums;

/**
 * @Description 所有业务异常的枚举
 * @author fengshuonan
 * @date 2016年11月12日 下午5:04:51
 */
public enum BizExceptionEnum {
	NO_THIS_USER(400,"没有此用户"),
	ERROR_STATE(6065,"专车司机状态不存在"),
	DISABLED_ACCOUNT(605,"账户已被禁用，请联系管理员"),
	PWD_MISMATCH(604,"旧密码与输入不匹配,请确认后重新输入!"),
	INFO_REPEAT(603,"信息已存在,请更换名称"),
	PWD_ERROR(602,"帐号或密码错误"),
	AUTH_ERROR(401,"访问资源受限"),
	REQUEST_NULL(400, "请求为空"),
	SERVER_ERROR(500, "服务器异常");

	BizExceptionEnum(int code, String message) {
		this.friendlyCode = code;
		this.friendlyMsg = message;
	}

	private int friendlyCode;

	private String friendlyMsg;

	public int getCode() {
		return friendlyCode;
	}

	public void setCode(int code) {
		this.friendlyCode = code;
	}

	public String getMessage() {
		return friendlyMsg;
	}

	public void setMessage(String message) {
		this.friendlyMsg = message;
	}

}
